﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="AllReturnToFactoryRecords.aspx.cs" Inherits="WXYW.AllReturnToFactoryRecords" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    所有返厂维修记录
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
    关键字<asp:TextBox ID="keyWordTextBox" runat="server" Height="16px" onkeypress="enterTxtBox('searchLinkButton')"></asp:TextBox>
    <asp:LinkButton ID="searchLinkButton" runat="server" OnClick="searchLinkButton_Click">查询</asp:LinkButton>
    <asp:LinkButton ID="resetLinkButton" runat="server" OnClick="resetLinkButton_Click">清除</asp:LinkButton>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
    <asp:GridView ID="returnToFactoryGridView" runat="server" CssClass="tableList" BorderWidth="1"
        BorderColor="#888888" AutoGenerateColumns="false" AllowPaging="true" PageSize="20"
        OnPageIndexChanging="maintainProductGridView_PageIndexChanging" 
        Width="100%">
        <Columns>
            <asp:TemplateField HeaderText="代理商代码">
                <ItemTemplate>
                    <%#Eval("ProvideCode")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="代理商单号">
                <ItemTemplate>
                    <%#Eval("RunningNumber") %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="RMA单号">
                <ItemTemplate>
                    <%#Eval("ApplicationProduct.ApplicationForm.ApplicationCode")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="产品型号">
                <ItemTemplate>
                    <%#Eval("ApplicationProduct.ProductType.ProductTypeName")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="产品序号">
                <ItemTemplate>
                    <%#Eval("ApplicationProduct.ProductSerialNumber")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="维修零件">
                <ItemTemplate>
                    <%#Eval("ApplicationProduct.RepairAccessory")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="故障类型">
                <ItemTemplate>
                    <%#Eval("ApplicationProduct.ProblemType.Name")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="完成日期">
                <ItemTemplate>
                    <%#Eval("ApplicationProduct.RepairCompleteDateTime")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <asp:LinkButton ID="viewLinkButton" runat="server" OnClick="viewLinkButton_Click" CommandArgument='<%#Eval("ID") %>'>查看</asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
</asp:Content>
